<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<html>
<head>
	<script type="text/javascript" src="${pageContext.request.contextPath }/common/tree/codebase/dhtmlxcommon.js"></script>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/common/tree/codebase/dhtmlxtree.css" type="text/css"></link>
	<script type="text/javascript" src="${pageContext.request.contextPath }/common/tree/codebase/dhtmlxtree.js"></script>
	
</head>
<body style="margin: 0;">
  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#f1f5f9">
    <tr>
      <td height="100%" align="center" valign="top" class="x_leftBg">
      <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      	  <tr>
          <td align="center" height="100%">
          <table width="196" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            
            <tr>
              <td align="center" valign="middle" ><table width="100%" height="100%"  border="0" cellspacing="0" cellpadding="0">
              
                  <tr>
                    <td align="center" class="x_bottombg"  height="100%" valign="top" >
				<div id="treeBox" style="border:  1px solid #939393;width: 300px;height: 600px;background: #ffffff;" align="left"></div>
						<div style="padding-left: 10px;padding-top: 10px;width:210px; border: 0px #000000 solid;overflow:auto;height: 100%; " align="left">
						<script type="text/javascript">
							tree = new dhtmlXTreeObject('treeBox','100%','100%',0);
							tree.setImagePath("${pageContext.request.contextPath }/common/tree/codebase/imgs/");
							tree.loadXML("${pageContext.request.contextPath }/sys/Menus_maintree.action");
							tree.attachEvent("onClick", function(id){
							var userData = tree.getUserData(id,"actionUrl");
							if(userData!=null&&userData!=""&&userData!='undefind'){
							 	parent.main_right.location.href="${pageContext.request.contextPath }/"+userData;
							}
								
							});
							
							
							 parent.main_right.location.href="${pageContext.request.contextPath }/main.jsp";
						</script>
						</div>
					</td>
                  </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
      </table> 
	</td>
    </tr>
  </table>

</body>
</html>